package com.example.aitoedu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 学生作业
 * @TableName STestBank
 */
@TableName(value ="STestBank")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Stestbank implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 学生id
     */
    private Long sid;

    /**
     * 课程id
     */
    private Long cid;

    /**
     * 章节id
     */
    private Long chapterId;

    /**
     * 教师题库id
     */
    private Long ttid;

    /**
     * 非判断答案(学生的答案,不一定正确)
     */
    private String answer;

    /**
     * 判断答案,1正确,0错误(学生的答案,不一定正确)
     */
    private Integer ajudge;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;

    /**
     * 题目状态:0为错,1为对,2为未做,3为半对半错
     */
    private Integer stuStatus;

    /**
     * 题目状态:0为错,1为对,2为未做
     */
    private Integer stuScore;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}